package com.xinghou.platform.dao.main;

import java.sql.Timestamp;
import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.UserRelationTo;

public interface UserRelationToDAO {
	 public UserRelationTo getUserRelationToById(Integer Id)throws DataAccessException;
	 
	 public int updateUserRelationTo(UserRelationTo userRelationTo) throws DataAccessException;
		
	 public int saveUserRelationTo(UserRelationTo userRelationTo) throws DataAccessException;
	 
	 /**
	  * 根据Toid与fromuserid 获得 To轮询表
	  * @param fromUserId
	  * @return
	  */
	 public UserRelationTo getUserRelationToByUserId(Integer toUserId,Integer fromUserId);
	 
	 /**
	  * 查询关注我Users
	  * @return
	  */
	 public List<UserRelationTo> getUserRelationToByToUserId(Integer toUserId,Integer startno,Integer pagesize);

	public List<UserRelationTo> getAllUserRelationToByToUserId(Integer toUserId);


	/**
	  * 关注我集合
	  * @param toUserId		用户id
	  * @param id			id
	  * @param rowNum		行数
	  * @return
	  * @throws DataAccessException
	  */
	 public List<UserRelationTo> getUserRelationToList(int toUserId,Timestamp id,int rowNum) throws DataAccessException;






}
